package com.yanqu.road.entity.activity.turtle.config;

import com.yanqu.road.entity.FieldTypeAnnotation;

import java.sql.ResultSet;
import java.sql.SQLException;

/**
 * @Author : Cxp
 * @Time : 2024-09-06
 * @Description : 乌龟对对碰-模板配置实体类
 */

@FieldTypeAnnotation(tableName = "t_s_activity_turtle_template")
public class TurtleTemplate {
    @FieldTypeAnnotation(desc = "模板id")
    private int id;

    @FieldTypeAnnotation(desc = "模板格式")
    private String template;

    @FieldTypeAnnotation(desc = "权重")
    private int weight;

    @FieldTypeAnnotation(desc = "是否为好模板")
    private int isGood;

    public TurtleTemplate(ResultSet rs) throws SQLException {
        this.id = rs.getInt("id");
        this.template = rs.getString("template");
        this.weight = rs.getInt("weight");
        this.isGood = rs.getInt("isGood");
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getTemplate() {
        return template;
    }

    public void setTemplate(String template) {
        this.template = template;
    }

    public int getWeight() {
        return weight;
    }

    public void setWeight(int weight) {
        this.weight = weight;
    }

    public int getIsGood() {
        return isGood;
    }

    public void setIsGood(int isGood) {
        this.isGood = isGood;
    }
}
